package com.gaoqi.springboot_shiro.controller;


import com.gaoqi.springboot_shiro.mapper.UsersMapper;
import com.gaoqi.springboot_shiro.pojo.User;
import com.gaoqi.springboot_shiro.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class TestController {

    @Resource
    private UserService userService;

    @GetMapping("/test")
    @CrossOrigin
    public String test() {
        return "springbfdsfoot_shiro";
    }
}
